package com.ruoyi.odorservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.odorservice.entity.Craft;
import com.ruoyi.odorservice.entity.Material;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.odorservice.entity.Material;
import com.ruoyi.odorservice.model.vo.CraftOdorMaterialVo;
import com.ruoyi.odorservice.model.vo.SearchMaterialVo;

import java.util.List;
public interface MaterialService extends IService<Material> {
    Result<Material> searchMaterial(Integer id);

    Result<List<Material>> searchOdor(Integer id);

    Result<List<CraftOdorMaterialVo>> searchIndustry(Integer id);
    /**
     * 根据关键词搜索物质
     * @param key
     * @return
     */
    List<SearchMaterialVo> searchMaterial(String key);

    Result<List<Material>> getAllMaterial();
}
